#coding=utf-8
import wx

class RemindDialog(wx.Dialog):
  def __init__(self,parent,message,width=300,height=160):
    wx.Dialog.__init__(self,None,wx.ID_ANY,'Remind message',\
          size=(width,height),style=wx.DEFAULT_DIALOG_STYLE)
    topSizer = wx.BoxSizer(wx.VERTICAL)
    topSizer.Add(wx.TextCtrl(self,wx.ID_ANY,message,style=wx.TE_LEFT|wx.TE_READONLY|wx.TE_MULTILINE), 1, wx.EXPAND)
    okButton= wx.Button(self,wx.ID_ANY,'OK')
    topSizer.Add(okButton, 0, wx.EXPAND)
    wx.EVT_CLOSE(self, self.onOKButton)
    self.Bind(wx.EVT_BUTTON, self.onOKButton, okButton)
    self.SetSizer(topSizer)
    
  def onOKButton(self,e):
    self.Destroy()
    return True
 
  
